package com.mvu.banana.guest.server.gen;
import com.mvu.banana.domain.stub.Credential;
import com.mvu.banana.guest.client.gen.SignUpFormDTO;
import com.mvu.banana.domain.stub.Profile;
import com.mvu.banana.common.server.AJAXServlet;


public abstract class SignUpFormServletStub extends AJAXServlet<SignUpFormDTO>{

  public Profile createProfile(SignUpFormDTO p0){
    Profile bean = new Profile();
    bean.setName(p0.name);
    bean.setEmail(p0.email);
    bean.setGender(p0.gender);
    bean.setBirthDate(p0.birthDay);
    return bean;
  }

  public void copy(Profile p0, SignUpFormDTO p1){
    p1.name = p0.getName();
    p1.email = p0.getEmail();
    p1.gender = p0.getGender();
    p1.birthDay = p0.getBirthDate();
  }

  public Credential createCredential(SignUpFormDTO p0){
    Credential bean = new Credential();
    bean.setPassword(p0.password);
    return bean;
  }

  public void copy(Credential p0, SignUpFormDTO p1){
    p1.password = p0.getPassword();
  }
}